<template>
  <div>
    <p>姓名：{{ user.name }}</p>
    <p>年龄：{{ user.age }}</p>
    <p>传递的值是：{{ user.score }} 分</p>

    <p>当前计数：{{ user.count }}</p>

  </div>
</template>

<script>
export default {
  props: {
    user: {
      type: Object,
      required: true
    }
  },
  created() {
    console.log(this.user); // 检查接收到的user
  }
};
</script>